﻿using System;
using System.ServiceModel;
using CalculatorService;

namespace Client
{
    class CalcClient
    {
        static void Main()
        {
            ICalculatorService clientProxy =
                new ChannelFactory<ICalculatorService>("CalculatorServiceEP").CreateChannel();

            Console.WriteLine(clientProxy.Multiply(2, 3.145));
            Console.WriteLine("Press <ENTER> to exit client.");
            Console.WriteLine();
            Console.ReadLine();

            
        }
    }
}